<template>
	<ul class="am-nav am-nav-pills">
		<li :class="{'am-active': $route.path == '/'}">
			<a v-link="{path: '/'}">首页</a>
		</li>
		<li :class="{'am-active': $route.path == '/nav'}">
			<a v-link="{path: '/nav'}">菜单</a>
		</li>
		<li :class="{'am-active': $route.path == '/err'}">
			<a v-link="{path: '/err'}">错误</a>
		</li>
		<li :class="{'am-active': $route.path == '/login'}">
			<a v-link="{path: '/login'}">登录</a>
		</li>
		<li :class="{'am-active': $route.path == '/login/register'}">
			<a v-link="{path: '/login/register'}">注册</a>
		</li>
	</ul>
</template>